var appData = getApp().globalData;
Page({

  onLoad: function (op) {
    this.setData({
      code: op.code, 
      info: JSON.parse(op.info),
      hotelName: appData.hotelName[appData.hotel]
    })
    console.log(this.data.code, this.data.info)
  },
  showCode: function() {
    getApp().modal('优惠券码',this.data.code)
  },
  onHide: function() {
    this.setData({ code: new Date().getTime().toString() })
  },
})